<?php
/* @var $this OrderController */
Yii::app()->clientScript->registerCoreScript('jquery');
Yii::app()->clientScript->registerCoreScript(Yii::app()->baseUrl.'/js/common.js');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl.'/css/style/style_cart.css');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl.'/css/style/style_two.css');
$this->breadcrumbs=array(
	'订单'=>array('/member/order'),
	'结算订单',
);
?>
<div class="w_990 o_a cart">
    <div class="steps">
        <ul class="fs_14 fw_b c_666 c_f">
            <li class="done done_b first"><span class="one">1.查看购物车</span></li>
            <li class="done_b"><span class="two">2.确认订单信息</span></li>
            <li class="done_a"><span class="three">3.付款</span></li>
            <li class="cur"><span class="four">4.确认收货</span></li>
            <li class="last"><span class="five">5.评价</span></li>
        </ul>
    </div>
    <div class="hr_25"></div>
    <!--订单信息  start-->
    <div class="order_info">
        <div class="hd c_f"><span class="f_r time"><em class="c_999">下单时间：</em><?php echo date('Y-m-d H:i:s',$order->zo_create_time)?></span><h2 class="fs_14 f_l">订单信息</h2><span class="num"><em class="c_999">订单编号：</em><?php echo $order->zo_id?></span><span class="num"><em class="c_999">付款交易号：</em><?php echo $order->zo_trade_no?></span></div>
        <table class="order_table" width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <th class="pro" width="">商品名称</th>
                <th width="12%">单价(元)</th>
                <th width="10%">数量</th>
                <th width="14%">优惠</th>
                <th width="14%">商品总价(元)</th>                
            </tr>
            <?php foreach ($product as $key => $value) {?> 
            <tr>
                <td class="pro">
                    <div class="c_img c_img60"><?php echo CHtml::link(Tool::thumb($value->zop_pic,60,60,$value->zop_title),array('/home/product/detail/','id'=>$value->zp_id))?></div>
                    <p class="title_pro">
                        <?php echo CHtml::link($value->zop_title,array('/home/product/detail/','id'=>$value->zp_id),array('class'=>'c_06c','title'=>$value->zop_title))?>
                    </p>
                    <p class="other c_666">
                        <?php $prospe = unserialize($value->zop_spe)?>
                        <?php foreach($prospe as $name=>$spe){?>
                                <span><?php echo $spe;?></span>
                        <?php }?>
                        
                    </p>
                </td>
                <td class="price fs_14"><span><?php echo $value->zop_price?></span></td>
                <td class="amount"><?php echo $value->zop_nums?></td>
                <td class="agio"><span>无优惠</span></td>
                <td><span class="fw_b fs_14 ff_yh"><?php echo $value->zop_real_price?></span></td>
            </tr>
            <?php }?>
        </table>
        <div class="foot t_r"><span class="sp"><a class="c_06c mr5" href="javascript:" title="<?php echo F::setting('sitename')?>"><?php echo F::setting('sitename')?></a><em class="ico_qq qq_online2">和我联系</em></span><span class="sp d_n">可获商城积分：127点</span><span class="sp pay">运费：<strong class="fs_18 ff_yh c_f60"><?php echo $order->zo_real_freight?></strong> 元</span><span class="sp pay">实付款：<strong class="fs_18 ff_yh c_f60"><?php echo $order->zo_amount?></strong> 元</span></div>
    </div>
    <!--订单信息  end-->
    <div class="hr_15"></div>
    <!--确认收货  start-->
    <div class="pay_box">
        <div class="hd"><h2 class="fs_14">确认收货</h2></div>
        <div class="bd">
            <p class="alert_msg fw_b fs_14">请收到货后，再确认收货！否则您可能钱货两空！</p>
            <p class="refund_tips line_30 fs_14">如果您想申请退款，<?php echo l('请点击这里',array('/member/index/orders/','keywords'=>$order->zo_id),array('class'=>'c_06c','target'=>'_blank'))?></p>
            <form method="post" action="" name="confirmorder">
            <ul class="payment">
                <?php
                //错误提示!
                if(hasFlash()){
                renderFlash();
                } ?>
                <li><span class="tit">支付密码：</span><input class="t_ipt ipt_bg" type="password" name="password" maxlength="32" /><?php echo l('忘记支付密码？','/member/info/repass#tab2',array('class'=>'c_06c','target'=>'_blank'))?></li>
                <li><span class="tit"><font color=#999>初始支付密码与会员注册时输入的登录密码一致，为了您的交易安全，请务必更改你的支付密码，且最好与注册密码不同。<?php echo l('修改支付密码？','/member/info/repass#tab2',array('class'=>'c_06c','target'=>'_blank'))?></font></span></li>
                <li><span class="tit"></span><button class="btn btn_pay" type="submit" name="pay_ok" value="ok"></button></li>
            </ul>
            </form>
        </div>
    </div>
    <!--确认收货  end--> 
    
</div>

<script type="text/javascript" src="<?php echo Yii::app()->baseUrl?>/js/cart.js"></script>
